*{
    margin: 0px;
    padding: 0px;
}
/*html{
    height: 100%;
}*/
body{
    height: 100vh;
    background-color: #BBE2F4;
    overflow: hidden;
}
.container{
    height: 100vh;
    min-width: 320px;
    max-width: 414px; 
    background-image: url(../images/bg.png);
    background-size: contain;
    background-repeat: no-repeat;

    position: relative;
}


/*动画样式*/
.container .big-fish{
    animation: bigFish_move 2s ease-out forwards;
}

/*关键帧动画*/
@keyframes bigFish_move{
    from{
        transform: translate(-40px,0);
    }
    to{
        transform: translate(20px,0);
    }
}

.container .text{
    width: 225px;
    position: absolute;
    top: 80px;
    /*calc(),计算方法。注意，-号两边要留空格*/
    left: calc(50% - 225px/2);
    animation: textAnimation 2s ease-out;
}

@keyframes textAnimation{
    0%{
        transform: translate(180px,0);
    }
    100%{
        transform: translate(0,0);
    }
}

.container .ice{
    width: 200px;
    position: absolute;
    bottom: 50px;
    left: calc(50% - 200px/2); 
    animation: iceAnimation1 3s ease-out,
               iceAnimation2 1s linear 3s infinite;
}
@keyframes iceAnimation1{
    0%{
        transform: translate(0,150px);
    }
    100%{
        transform: translate(0,0);
    }
}
@keyframes iceAnimation2{
    0%{
        transform: translate(0,0);
    }
    50%{
        transform: translate(0,5px);
    }
    100%{
        transform: translate(0,0);
    }
    
}

.water{
    width: 100vw;
    height: 220px;
    background-image: url(../images/water.png);
    position: absolute;
    bottom: 0px;
}

.container .first-fish{
    width: 25px;
    position: absolute;
    left: -30px;
    bottom: 200px;
    animation: firstfish_Animation 8s linear infinite;
}
@keyframes firstfish_Animation{
    0%{
        transform: translate(0,0);
    }
    100%{
        transform: translate(360px,0);
    }
}

.container .second-fish{
    width: 25px;
    position: absolute;
    right: -40px;
    bottom: 40px;
    animation: secondfish_animation 8s linear infinite;
}
@keyframes secondfish_animation{
    0%{
        transform: translate(0,0);
    }
    100%{
        transform: translate(-400px,0);
    }
}

.container .bubble{
    width: 55px;
    position: absolute;
    left: 35px;
    bottom: 80px;
    opacity: 0;

    animation: bubbleAnimation 0.5s ease-in 2.5s forwards;
}
@keyframes bubbleAnimation{
    0%{
        /*transform: translate(0,60px) scale(0.1);*/
        transform: matrix(.1,0,0,.1,0,60);
        opacity: 0;
    }
    100%{
        /*transform: translate(0,0) scale(1);*/
        transform: matrix(1,0,0,1,0,0);
        opacity: 1;
    }
}

.container .weixin{
    width: 80px;
    position: absolute;
    left: calc(50% - 80px/2);
    bottom: 120px;
}